package com.qzimp.fujiancuo.mapper;

import com.mybatisflex.core.BaseMapper;
import com.qzimp.fujiancuo.entity.Personage;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 *  映射层。
 *
 * @author 李欧雯
 * @since 2024-12-20
 */
public interface PersonageMapper extends BaseMapper<Personage> {

    @Select("SELECT * FROM tb_personage WHERE name LIKE CONCAT('%', #{searchKeyword}, '%')")
    List<Personage> searchPersonages(String searchKeyword);
}
